﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using YmtAuth.AppService;
using YmtAuth.Web.V2.GlobalErrorHandle;
using YmtSystem.CrossCutting;

namespace YmtAuth.Web.V2.Controllers
{
    [CustomGlobalErrorHandle]
    public class UserAuthController : Controller
    {
        public ActionResult LoginAuth(string ukey, string pas, string rtype)
        {
           
            var appService = LocalServiceLocator.GetService<IUserLoginAuth>().LoginAuth(ukey, pas, rtype);
            return Json(appService, JsonRequestBehavior.AllowGet);
        }
    }
}
